package com.xiangban.model;

import com.xiangban.model.dto.MetaDto;
import com.xiangban.model.dto.PermissionMenuDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/11/17 11:02
 */
@Data
@ApiModel("")
public class PermissionMenu {

    @ApiModelProperty(value = "")
    private Integer id;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "组件名称")
    private String name;

    @ApiModelProperty(value = "菜单代码")
    private String code;

    @ApiModelProperty(value = "父菜单id")
    private Integer pId;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "重定向地址")
    private String redirect;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "")
    private String component;

    @ApiModelProperty(value = "是否显示主菜单")
    private boolean alwaysShow;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "权限")
    private Integer permissionGroupId;

    @ApiModelProperty(value = "C 目录 M 菜单 B 颗粒权限")
    private String type;

    @ApiModelProperty(value = "0 true 1 false")
    private boolean hidden;

    @ApiModelProperty(value = "0 true 1 false")
    private boolean affix;

    private List<PermissionMenuDto> children;

    private MetaDto meta;

}
